Bake the published public CI token - #43
Merged
Merged
Conversation
Config::PUBLIC_TOKEN carries the provisioned analyze-only token (public by design; the server enforces its scope). The test suite now binds Config with the fallback off so no test silently rides the baked token, and the Config unit tests construct it that way explicitly. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Config::PUBLIC_TOKENnow carries the provisioned analyze-only token (id 4). It is public by design: the server enforces its scope (verified live: analyze 200; convert, user, usage all 403) and rate limits it per IP.beforeEachbindsConfigwith the fallback off, so no test silently authenticates with the real token; the Config unit tests construct their instances the same way; a new test asserts the baked value looks like a Sanctum token whenever present.make check-public-token(the release guard) now passes. 284 tests green.After merge
make releasecuts the release; suggestedVERSION=v1.3.0(the public-token fallback is additive; the namespace rename is internal). Packagist syncs automatically. From that moment, freshly scaffolded workflows and existing guard-less ones gate fork PRs for real.🤖 Generated with Claude Code